/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 20px 0;
}
.table-responsive {
    overflow-x: inherit !important;
}
/* 容器样式 */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* 可截断的文本样式 */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* 代码块样式 */
.code-block {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    cursor: pointer;
}

.code-block:hover {
    text-decoration: underline;
    color: #0d6efd;
}

/* 输出内容样式 */
.output-content {
    height: 400px;
    overflow-y: auto;
    background-color: #212529;
    color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* 上下文菜单样式 */
.context-menu {
    position: absolute;
    z-index: 1050;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 10rem;
}

.context-menu-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-align: left;
}

.context-menu-item:hover,
.context-menu-item:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

/* 响应式表格样式调整 */
@media (max-width: 768px) {
    .table th, .table td {
        font-size: 0.9rem;
    }

    .truncate, .code-block {
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .table th, .table td {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .truncate, .code-block {
        max-width: 80px;
    }
}



/* 自启状态按钮样式 */
.autostart-status-btn {
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.autostart-status-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.autostart-status-btn:active {
    transform: scale(0.95);
}

/* 自启状态按钮禁用状态 */
.autostart-status-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* 自启确认模态框样式 */
#autostartConfirmModal .modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

#autostartConfirmModal .modal-body {
    padding: 2rem 1.5rem;
}

#autostartConfirmModal .alert-info {
    border-left: 4px solid #0dcaf0;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

#autostartConfirmIcon {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#autostartConfirmModal .btn {
    min-width: 80px;
}

/* 模态框动画优化 */
#autostartConfirmModal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translateY(-50px);
}

#autostartConfirmModal.show .modal-dialog {
    transform: translateY(0);
}